/**
 * 
 */
package de.cbf.cam.dsa.facet.sf.edit;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;

import de.cbf.cam.dsa.facet.sf.test_suppport.ConstantsSWTBOTSf;
import de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory;

/**
 * @author Nebelritter
 *
 */
public class SectionFactorySf extends AbstractFacetSectionFactory{

	protected static final String SECTION_TITLE = "Sf Section";

	/* (non-Javadoc)
	 * @see de.cbf.util.entity.facet.edit.composites.factorys.AbstractFacetSectionFactory#createCompositeFacet(org.eclipse.ui.forms.widgets.Section)
	 */
	@Override
	protected Composite createCompositeFacet(Section section, FormToolkit toolkit) {
		Composite talentComposite = new CompositeEditSf(section, SWT.DOUBLE_BUFFERED, toolkit);
		toolkit.adapt(talentComposite);
		return talentComposite;
	}

	@Override
	protected String getSetionTitle() {
		return SECTION_TITLE;
	}

	@Override
	protected String getActivationButtonTestID() {
		return ConstantsSWTBOTSf.SF_FACET_EDIT_SECTION_TBAR_TGLBT_ACTIVATION;
	}
}
